package bj.yanchao.com.dagger2_example;

import android.app.Application;

import bj.yanchao.com.dagger2_example.component.ApplicationComponent;
import bj.yanchao.com.dagger2_example.component.DaggerApplicationComponent;
import bj.yanchao.com.dagger2_example.module.ApplicationModule;

/**
 * ${TODO} What the class does
 *
 * @author： yanchao
 * @date： 6/3/16-3:24 PM
 * ${TAGS}
 */
public class YApplication extends Application {
    private ApplicationComponent applicationComponent;

    @Override
    public void onCreate() {
        super.onCreate();
        applicationComponent = DaggerApplicationComponent.builder()
                .applicationModule(new ApplicationModule(this))
                .build();
    }
    public ApplicationComponent getApplicationComponent() {
        return applicationComponent;
    }
}
